from rest_framework import serializers
from rest_framework.serializers import ModelSerializer, Serializer
from .models import ClassInfoFront
class ClassFrontSerializer(ModelSerializer):
    class Meta:
        model = ClassInfoFront  # 参考的model
        fields = "__all__"  # 指定要生成的字段__all__表示所有

